package vn.hocweb.entity;

import java.sql.Date;

public class CauHoiTrucTuyen extends Entity{
	private long maCauHoi;
	
	private NguoiDung nguoiTraLoi;
	private BaiHoc_Abstract baiHoc;
	
	private String chuDe;
	private String noiDung;	
	private Date ngayHoi;
	private Date ngayTraLoi;
	private String cauTraLoi;
	private int soLanXem;
	private String email;
	private String dienThoai;
	private String name;
	
	public CauHoiTrucTuyen(long maCauHoi, String nguoiTraLoi,
			long maBaiHoc, String chuDe, String noiDung, Date ngayHoi,
			Date ngayTraLoi, String cauTraLoi, int soLanXem, String email,
			String dienThoai, String name, int thuTu, boolean noiBat, boolean hienThi) {
		super(thuTu, hienThi, noiBat);
		this.maCauHoi = maCauHoi;
		this.nguoiTraLoi = new NguoiDung(nguoiTraLoi);
		this.baiHoc = new BaiHoc(maBaiHoc);
		this.chuDe = chuDe;
		this.noiDung = noiDung;
		this.ngayHoi = ngayHoi;
		this.ngayTraLoi = ngayTraLoi;
		this.cauTraLoi = cauTraLoi;
		this.soLanXem = soLanXem;
		this.email = email;
		this.dienThoai = dienThoai;
		this.name = name;
	}

	public long getMaCauHoi() {
		return maCauHoi;
	}

	public void setMaCauHoi(long maCauHoi) {
		this.maCauHoi = maCauHoi;
	}

	public NguoiDung getNguoiTraLoi() {
		return nguoiTraLoi;
	}

	public void setNguoiTraLoi(NguoiDung nguoiTraLoi) {
		this.nguoiTraLoi = nguoiTraLoi;
	}

	public BaiHoc_Abstract getBaiHoc() {
		return baiHoc;
	}

	public void setBaiHoc(BaiHoc_Abstract baiHoc) {
		this.baiHoc = baiHoc;
	}

	public String getChuDe() {
		return chuDe;
	}

	public void setChuDe(String chuDe) {
		this.chuDe = chuDe;
	}

	public String getNoiDung() {
		return noiDung;
	}

	public void setNoiDung(String noiDung) {
		this.noiDung = noiDung;
	}

	public Date getNgayHoi() {
		return ngayHoi;
	}

	public void setNgayHoi(Date ngayHoi) {
		this.ngayHoi = ngayHoi;
	}

	public Date getNgayTraLoi() {
		return ngayTraLoi;
	}

	public void setNgayTraLoi(Date ngayTraLoi) {
		this.ngayTraLoi = ngayTraLoi;
	}

	public String getCauTraLoi() {
		return cauTraLoi;
	}

	public void setCauTraLoi(String cauTraLoi) {
		this.cauTraLoi = cauTraLoi;
	}

	public int getSoLanXem() {
		return soLanXem;
	}

	public void setSoLanXem(int soLanXem) {
		this.soLanXem = soLanXem;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getDienThoai() {
		return dienThoai;
	}

	public void setDienThoai(String dienThoai) {
		this.dienThoai = dienThoai;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}
